# -*- coding: utf-8 -*-
"""
# @created on : 9月 2021/9/22 21:00
# @author     : kevin
# @file       : get_verifyentry.py
# @software   : PyCharm
# @project    : auto_interface_test


@license: (C) Copyright 2019-2025, Corporation Limited.
@desc:
"""
import ddddocr


class GetValidCode:

    def get_img_code(self, img):
        # print(img)
        ocr = ddddocr.DdddOcr()
        # with open(img) as f:
        # img_bytes = img.read()
        res = ocr.classification(img)
        return res